package com.itheima.demo02;

import java.io.*;

public class IoObjectOutputStream {
    public static void main(String[] args) throws IOException {
        //序列化流 写入流

        //创建学生对象
        Student st = new Student("战三",20,"北京");

        ObjectOutputStream output = new ObjectOutputStream(new FileOutputStream("aa.txt"));
        output.writeObject(st);

        output.close();

    }
}
